package com.bajiao.vo.coupon;

import com.alibaba.fastjson.annotation.JSONField;
import com.bajiao.common.constant._Whole;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("CouponDetailsResponse")
public class CouponDetailsResponse {

    @ApiModelProperty("优惠券id")
    private String id;

    @ApiModelProperty("优惠券名称")
    private String title;

    @ApiModelProperty("范围 1-平台 2-商家专属")
    private Integer scope;

    @ApiModelProperty("类型 1-折扣券 2-抵扣券")
    private Integer type;

    @ApiModelProperty("面额")
    private String quota;

    @ApiModelProperty("满#减")
    private String meet;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("简介")
    private String intro;

    @ApiModelProperty("是否拥有 0-否 1-是")
    private Integer isHas = _Whole.ZERO;

    @ApiModelProperty(value = "状态 0-失效 1-可用 2-已使用 3-已核销", required = true, position = 60)
    private Integer status;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @ApiModelProperty(value = "领取时间", required = true, position = 40)
    private Date receiveTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @ApiModelProperty(value = "失效时间", required = true, position = 50)
    private Date expireTime;

    @ApiModelProperty(value = "商家名称")
    private String storeTitle;

    @ApiModelProperty(value = "关联订单号")
    private String orderNo;

    @ApiModelProperty("核销码")
    private String verifyCode;

    @ApiModelProperty("核销二维码")
    private String verifyQrCode;
}
